﻿@model Headlight.ViewModels.QuoteViewModel
@{
    ViewBag.Title = "Policy & Driver Information";
    Layout = "~/Views/Shared/_WizardLayout.cshtml";
}

@section head
{
<link href="@Url.Content("~/assets/css/jquery-ui-1.8.23.custom.css")" rel="stylesheet" />
<script src="@Url.Content("~/assets/js/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/assets/js/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/assets/js/formerror.js")" type="text/javascript"></script>
<script src="@Url.Content("~/assets/js/jquery-ui-1.8.11.min.js")" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
    $(document).ready(function () {
        $(".datepick").datepicker({
            changeMonth: true,
            changeYear: true,
            yearRange: '1910:2000'

        });
    });
</script>
}
	
	@Html.Partial("_BreadCrumb")
	<h2 class="wizard-section-title">Policy & Driver Information</h2>

	@using (Html.BeginForm("NextStep", "Quote", FormMethod.Post, new { @class = "form-horizontal vehicle-form" }))
	{
        <fieldset>
        <legend>Next, please answer some questions about the kind of policy you want.</legend>
        
    	<h4 class="wizard-section-sub-title well">Policy Information</h4>
	    <div class="control-group control-group-divider">
			    <label class="control-label">Desired coverage level*</label>
			    <div class="controls">
                @Html.DropDownListFor(model => Model.Policy.CoverageType, Headlight.Helpers.DataHelper.GenerateCoverageType, new { @class = "required span3" }) 
                </div>
         </div>
	    <div class="control-group control-group-divider">
			    <label class="control-label">Desired comprehensive deductable*</label>
			    <div class="controls">
				@Html.DropDownListFor(model => Model.Policy.ComprehensiveDeductible, Headlight.Helpers.DataHelper.GenerateComprehensiveDeductable, new { @class = "required span3" }) 
			    </div>
		    </div>
	    <div class="control-group control-group-divider">
			    <label class="control-label" >Desired collision deductable*</label>
			    <div class="controls">
			    @Html.DropDownListFor(model => Model.Policy.CollisionDeductible, Headlight.Helpers.DataHelper.GenerateCollisionDeductable, new { @class = "required span3" }) 
			    </div>
		    </div>
	    <div class="control-group control-group-divider">
			    <label class="control-label" >When does your current policy expire?*</label>
			    <div class="controls">
			    @Html.DropDownListFor(model => Model.Policy.CurrentPolicyExpiration, Headlight.Helpers.DataHelper.GenerateCurrentPolicyExpiration, new { @class = "required span3" }) 
			    </div>
		    </div>
	    <div class="control-group control-group-divider">
			    <label class="control-label" >Who is/was your insurance company*</label>
			    <div class="controls">
				    @Html.DropDownListFor(model => Model.Policy.CurrentPolicyCompany, Headlight.Helpers.DataHelper.GeneratePolicyCompany, new { @class = "required required span3" }) 
			    </div>
		    </div>
	    <div class="control-group">
			    <label class="control-label" >How long have you been insured*</label>
			    <div class="controls">
			    @Html.DropDownListFor(model => Model.Policy.CurrentPolicyLength, Headlight.Helpers.DataHelper.GeneratePolicyLength, new { @class = "required span3" }) 
			    </div>
		    </div>


	    <h4 class="wizard-section-sub-title well">Primary Driver Information</h4>

	    <div class="control-group control-group-divider">
			    <label class="control-label">Gender*</label>
			    <div class="controls">
				    @Html.DropDownListFor(model => Model.Driver.Gender, Headlight.Helpers.DataHelper.GenerateGender, new { @class = "required span3" }) 
			    </div>
		    </div>
	    <div class="control-group control-group-divider">
			    <label class="control-label">Marital Status*</label>
			    <div class="controls">
				    @Html.DropDownListFor(model => Model.Driver.MaritalStatus, Headlight.Helpers.DataHelper.GenerateMaritalStatus, new { @class = "required span3" }) 
			    </div>
		    </div>
	    <div class="control-group control-group-divider">
			    <label class="control-label" >Birthdate*</label><div class="controls">
				    @Html.TextBoxFor(model => Model.Driver.BirthDate, new { @class = "datepick" }) 
			    </div>
		    </div>
	    <div class="control-group control-group-divider">
			    <label class="control-label" >Credit Rating*</label>
			    <div class="controls">
				    @Html.DropDownListFor(model => Model.Driver.CreditRating, Headlight.Helpers.DataHelper.GenerateRating, new { @class = "required span3" }) 
			    </div>
		    </div>
	    <div class="control-group control-group-divider">
			    <label class="control-label">Education*</label>
			    <div class="controls">
				    @Html.DropDownListFor(model => Model.Driver.Education, Headlight.Helpers.DataHelper.GenerateEducation, new { @class = "required span3" }) 
			    </div>
		    </div>
	    <div class="control-group control-group-divider">
			    <label class="control-label" >Occupation*</label>
			    <div class="controls required">
				    @Html.DropDownListFor(model => Model.Driver.Occupation, Headlight.Helpers.DataHelper.GenerateOccupation, new { @class = "required span3" }) 
			    </div>
		    </div>
	    <div class="control-group control-group-divider">
			    <label class="control-label" >Any tickets/accidents/claims in the past 3 years?*</label>
			    <div class="controls">
				    @Html.RadioButtonFor(model => model.Driver.Concerns, "true", new {  }) <span>Yes</span>
				    @Html.RadioButtonFor(model => model.Driver.Concerns, "false", new { Checked = "checked" }) <span>No</span>
                    @Html.ValidationMessageFor(model => Model.Driver.FilingRequired)
			    </div>
		    </div>
	    <div class="control-group">
			    <label class="control-label" >Need SR-22 filing?*</label>
			    <div class="controls">
				    @Html.RadioButtonFor(model => model.Driver.FilingRequired, "true", new {  }) <span>Yes</span>
				    @Html.RadioButtonFor(model => model.Driver.FilingRequired, "false", new { Checked = "checked" }) <span>No</span>
                    @Html.ValidationMessageFor(model => Model.Driver.FilingRequired)
			    </div>
		    </div>

	</fieldset>
     
<div class="form-actions">
   <div class="pull-right">
		@*
        <span>Do you have another driver?</span>
		<a href="#" style="text-decoration:none;" id="btnYes" class="blueButton">Yes</a>&nbsp;&nbsp;<a href="#" style="text-decoration:none;" id="btnNo" class="blueButton">No</a>
        *@
        <input type="submit" name="submit-button" value="@Headlight.Controllers.VehicleViewButtons.Next"  class="btn-continue" />
	</div>
</div>
	}
	
